package com.ffcs.web.utils;

/**@ClassName: ProxyUtil 
 * @Description: 代理服务类，用于公司内网环境做测试 
 * @Copyright: Copyright (c) 2014 FFCS All Rights Reserved
 * @Company 北京福富软件福州分公司
 * @author dairf 
 * @date Sep 4, 2014 5:00:49 PM
 * @version 1.00.00
 * @history:
 */

public class  ProxyUtil {
	
	/**
	 * @Title: setProxy 
	 * @Description: 设置代理 
	 * @param :
	 * @return void    返回类型  
	 * @author dairf
	 * @date Sep 4, 2014 5:05:30 PM
	 */
	public static void setProxy(){
		System.getProperties().put("socksProxySet", "true");
		System.getProperties().put("socksProxyHost", "192.168.13.19");
		System.getProperties().put("socksProxyPort", "1080");
	}
	/**
	 * @Title: removeProxy 
	 * @Description: 取消代理
	 * @param :
	 * @return void    返回类型  
	 * @author dairf
	 * @date Sep 4, 2014 5:05:36 PM
	 */
	public static void removeProxy(){
		System.getProperties().remove("socksProxySet");
		System.getProperties().remove("socksProxyHost");
		System.getProperties().remove("socksProxyPort");
	}
}
